added unit test for parseUrlForDb method