basic functions to build json to Ohana standard and export to MongoDB