made the db connect more modular
Merge branch 'dev' of https://github.com/votinginfoproject/Metis into dev