update and insert - needs more work but it works for now
insert id