Continues updating tests with new db_api calls

Adds several more tests to Quark utilizing the DB API as well as some
more cleanup.