Extract getDb to own module
Add sinon-as-promised
Implement basic connection sharing