database url detection