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

check that error handling doesn't go from bad to worse ;-)