Fix #53 so data can be updated in hooks

* Move calls to get $data down to after hook runs so data updated
   inside hooks will be included in insert/update