Throw err if connection to mongodb fails
Add auto rest routes