CURD operation in core php