started working on insert and update sides