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
Merge pull request #55 from vlucas/hook_data

Fix #53 so data can be updated in hooks