Fix slowdown of tests by reverting back to using knex in test/utils