changed environment object structure
Integrated Knex DB access!