@Override
    public void deleteOfOldResults() throws SQLException {

        switch (driverName) {
            case "org.h2.Driver":
                statement = connection.prepareStatement(deleteOfOldResultsStringH2);
                break;
            case "com.mysql.jdbc.Driver":
                statement = connection.prepareStatement(deleteOfOldResultsStringMySQl);
                break;
            default:
                System.out.println("Not true name of the driver.");
        }

        statement.execute();
        statement.close();
    }