fixed keys for insert and update