Add listener for database updates