fixed getDbURL function