@Bean(destroyMethod="dispose")
public DataSource dataSource() {
JdbcConnectionPool dataSource = JdbcConnectionPool.create(environment.getProperty("database.url"),
environment.getProperty("database.username"), environment.getProperty("database.password"));
new DatabaseUpgrader(dataSource, environment, textEncryptor).run();
return dataSource;
}