Add configuration values and move database connection to main class