autostart database and listener