Started to fix the revision DB migration (WIP)