Changed the name of the debug_logger to be just logger since debuging is the only thing logged.
Added the new debug statement to all database debugging statements.
Changed logging function