updated server.model of crud