style(db): improve error messages when mongod is not available

docs(db): add authenticate fail code

throw err so that test can pass