Fix update hook to do a db_merge.