Empty cart functionality

Exported delete item functionality to a function. Had to include $conn
in the method because it was not recognizing the variable