Allow setting explicit datamodel id

E.g. for migrating schemata

(from redmine: issue id 833, created on 2018-01-22tgradl)