added database config and classes.