Propagate errors through futures when opening connection to the database

Without this propagation the VM crashes if MongoDB is down.
Merge pull request #19 from izaera/master

Patch to propagate DB connection error