Generates and inserts random data into mongodb