Refactored DB accessories to facilitate cart storage and access via JSP.