make sure that versionTo < versionFrom does not happen
improve delete and update
* ensure that there are no references before deleting
* only increase the version if an update actually contains changes
* allow optimistic locking when updating
comment out drop-and-create
add ID_ to "ID_DATA_TYPE, VERSION_TO" index
add optional uniqueness check/constraint for key1/key2