Change id names for input boxes and removed the input boxes for costs.
Add methods to parse inputs and save data to database.
Added class with methods that are used by multiple classes to parse input data and ensure valid input for quantities and numbers.