Inserting updating and deleting data to mysql through php