Setting up the scaffolding for creating queries