Updated Ecom Module to New Database Schema

Updated Ecom Module and the rest of the application for the new Ecom
database schema.