thanks how do i register the database to the listener?