load database config from yaml