Fix the lowercase migration to work in other dbs