Refactored checkout system

Store checkout details in database temporarily