Fix the insert so the new primary key is sent back to the Ajax call.