linked db migration script