update function

Old data will now be inserted into the new table, when upgrading from
the former version.