fix(initDB): provide more accurate error messages

Fix error message in initDB if database doesn't exist on mongolab
Rewrite initDB.js so everything is wrapped in an initDB namespace (not a module because only one instance is needed at a time)
Add unit tests for initDB
chore(.gitignore): ignore .idea