Introduce sequelize orm

funny thing about this - the travis build is failing even though it seems like it ought to be passing.

this work is nearly done but we need to get that build to pass before merging this code into master.