Adding the data to the database.
Correctly retrieve the data from the database.
Added the formatter for the number inputs
Set the format to the total and the rows in the list