created queries class