Creating php classes with CRUD operations