read db config from config file