functionality to add the newly created assigment to the table