added a mechanism to execute callback functions when a database file is changed.