Added database -section (mongodb) for setting view + reconnection option for mongoose connection.