Hi Akash G,
When clicking in your 'Add' blue button you should point it to a screen action which just list appends or list inserts a new record into a local list variable. That list variable then should be used in a server action 'Save' where inside it you can iterate the list passed as an input parameter and proceed to a single save record into the database. This server action 'Save' should then be called in a screen action linked to your 'Save' button.
This kind of logic should solve your issue.
Tiago