added database config class