migration updates: premigration, bootstrap, migration; also cache schema on api.py