Organized queries into their own file

queries