added database listener