fix database reference in migration