Tidy code, remove mongo object array creation -> single object creation

Tidy code: fix formatting, tabs/spaces.
Modify mongo code: previously creating single object array, now just creating object and pushing that.