Shorten names, and distinguish between the local and remote database name