moving queries to their own directory