Make DB connection URL more generic

It should fix problem with incompatibility on Windows and Mac OS.