Cleaning up code

Changesets now hold the toTableID which is used to extract the whole
tableName for necessary queries.
OnlineHelper now uses correct TableName and uses new ChangeSet features