Resolve Alembic paths relative to the services directory, load DATABASE_URL from the project .env, and normalize async PostgreSQL URLs before migrations run. Also extract shared database URL helpers and cover the behavior with database tests.