rewrote hook_update to actually write to the database.