load config before create database connection