checks to assure use of the correct db (mutltiple are used in tests)
split into smaller tests
pep8