[Fix] Postgres Build 

This supersedes #1564 and updates to the latest knex and bookshelf versions. It also fixes a bug that prevented migrate.reset to work and drop all tables. 

This is the result of a lot of discussion with @sebgie and @tgriesser - thanks!
As result of this, we now have green Postgres build!