Database: Move all "delete this;" for DBOperationImpl* into a single cleanup() function.
Database: Clean up all warnings.