Added Query scaffolding without active record.