Create CRUD query