Fix # db migration script