rework db connection, and move readable stream to its own file
use new db connection in writable stream
adds db connection manager
adds bluebird dependency and readble stream