Added a debug feature for the Database class

I changed the Database class so that you can choose to enable logging. For example,

    db = SqliteDatabase('data.sqlite3', debug=True)

will enable the logger to log messages onto the console while the python interpreter is running.