fixed bug where keys of create didn't match with the update keys returned from db