implemented database listeners