Moving queryController file