refactor link between contentVariable and contentVariableTable to use the table id