Fixes to knex.