Trying to update and insert