Create AbstractQuery

a base class for all CRUD operations