Removed all vanilla mysql in favour of knex query builder