When attempting to rewrite a record after moving/changing one of the components of the key, it hits a error - ie. duplicate key. But after investigation using sql, there is no such existing key value in the database. Why is this happening ?