@Override
	public void addRecord(Account account, Record record) {
		
		PreparedStatement pStmt = null;
		String DATE_FORMAT_NOW = "dd.MM.YYYY";
		Date date = new Date();
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT_NOW);
		
		try {
			
			pStmt = conn.prepareStatement("INSERT INTO RECORD (id_account, funds, date, id_category) VALUES (?, ?, ?, ?);");
			pStmt.setInt(1, account.getId());
			pStmt.setDouble(2, record.getFunds());
			pStmt.setString(3, simpleDateFormat.format(date).toString());
			pStmt.setInt(4, record.getCategory().getId());
			pStmt.executeUpdate();
			
		} catch (SQLException e) {
			
			e.printStackTrace();
			
		} finally {
			
			closeResource(pStmt);
			
		}

	}