Fix migration, purge orphaned titles etc, improve styles