Setup database config file