Added GetStatistics to DatabaseCommandWrapper, wrapped more classes, refactored some code