Add optional knex injection.