New method to add/update rows to table