Refactored add operation to return the aray of values to be inserted into the table