Query methods are moved from the MainForm