Implement basic query logic and schema loading.