use config file for db