Functionality added - when the checkout is done all the items in the
cart are to be removed from the database

Code refactoring