Extracted db uri and port into config file.

Changed the reference in the corresponding entries.