Directly remove protocol from DB URL (#1335)

The pattern used before required GNU sed which is not installed by
default on OS X.