Some times database is not there in 'used' (for some reason)
Fix case where there's no path in a url