@Override
    public Set<Record> getRecords(Account account) {
        Set<Record> records = new TreeSet<>(new RecordComparator());

        PreparedStatement pStmt = null;
        ResultSet rs = null;
        try {
            pStmt = dbHelper.getConn().prepareStatement("SELECT * FROM RECORDS WHERE ACCOUNT_ID=? ");
            pStmt.setInt(1, account.getIdAcc());
            rs = pStmt.executeQuery();
            while (rs.next()) {
                Record record = new Record();
                record.setOperationAmount(rs.getDouble(rs.findColumn("OPERATION_AMOUNT")));
                int isAdditionType = rs.getInt(rs.findColumn("IS_ADD_TYPE"));
                record.setAddOperation(isAdditionType == 0 ? false : true);
                record.setOperationDesc(rs.getString(rs.findColumn("DESCRIPTION")));
                int categoryId = (rs.getInt(rs.findColumn("CATEGORY_ID")));
                record.setOperationCat(getCategoryById(categoryId));
                long recordDate = rs.getLong(rs.findColumn("OPERATION_DATE"));
                record.setOperationDate(recordDate);
                records.add(record);
            }
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            DbHelper.closeResource(rs);
            DbHelper.closeResource(pStmt);
        }
        logger.debug("Account: {} -> {}", account, records);
        return records;
    }