The Database class now throws an Exception if no database engine is set. Updated and added tests. Fixes issue #2.