Implementing executeQuery in ModelManager