Refactored MySQL class + added a debug level to logger