finish user updating and inserting