changed hibernate to update