public void checkDatabaseConnection() {

        logger.info("Checking database connection...");
        JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);

        try {
            jdbcTemplate.queryForInt(SqlQueries.CHECK_DATABASE_QUERY);
            logger.info("Database is up!");
        } catch (DataAccessException e) {
            logger.error("Database connection is down!", e);
        }
    }