Hide Deleted Keys
Fix SQL syntax