fixing error on finding db config file