make config based db connection (fixes#3)
make db connection tied to server start/stop (fixes#4)
make the server a property of module export for test access (fixes #4)
Merge pull request #6 from hoist/fix/#4

Fix/#4