Event model with listeners for database actions