Added beforeInsertUpdateHook to DbTables