Database connection from config files