splitting up mongo.R file (> 1000 lines of code )-: )
mongo err ot own file
JSON queries directly enabled, mongo.is.connected check added to all functions