fixed update / delete queries