Saving the records in the database and in a table.