Distinguish between internal and external urls in autocomplete for databases