Migrate files for num of queries