A database driven solution for tracking sales and inventory