Continues updating tests with new db_api calls

Adds several more tests to Quark utilizing the DB API as well as some
more cleanup.
Merge pull request #24 from Cerberus98/mergeup

Continues updating tests with new db_api calls