POS: refactored and moved stuff from Database to PointOfSaleSystem