Add QueryType (AND, OR) enum
Implement QueryType usage in DataBaseImpl