Change the database connection reset to postReloadCallbacks