Added parallel queries with multiprocessing