mongo store and sync code for minute