saving records to mongo