use single config file for connecting to database Closes #5