Use knex for DB access. Closes #46.