Adds domain migration.
Adds some database api calls.