using actual config components for jdbc

The presence of querystrings meant parsing db name, etc., was _really_
tricky and often wrong. Making this explicit fixes that.