Fix race condition when multiple calls enter db.connecting resulting in

Error: db object already connecting, open cannot be called multiple times
Merge branch 'master' of github.com:andreialecu/deployd