Update query file