Use node url module to parse db url