added first version of history logging for tables