Add more logging/debugging capabilities to the Database class