added hooks

now you can register any function to be done before (get,update,insert,delete) calls.