key_commit: added diag for sql objects and removed an unnecessary object