Implement getDatabase()
Cleanup public api a bit
Cleanup public api a bit #2
Complete getComment
Add test for exists
Add test for exists
Fix issue causing SQL buffer leak