Added query-related files. Much dramma, difficult to understand.