refs #8 updated DB BBs and wrote initial tests

Merged David Nichols requested to merge bugfix/8_db_tests into master

Merge request reports