Improving database query generators for CRUD operations