tests for error handling on db.read, db.write and db.transaction
Merge pull request #36 from jrgm/cover-error-handling-on-bad-queries

tests for error handling on db.read, db.write and db.transaction