Handling inserts and updates differently.