php raw code to do basic crud actions