Changes to work with sinatra-activerecord
Factored out DB connection setup

To allow for inclusion from other parts of the system without loading
the whole app

Commit from a train 🚂
Merge pull request #11 from EDEN-Energy/db_rewrite

Rewrite for new DB structure