@Override
	public Record removeRecord(Account from, Record record) {
		
		PreparedStatement pStmt = null;
		Record rec = null;
		Integer result;
		
		rec = getRecord(record.getId());
		
		if(rec != null){
			
			try {
				
				pStmt = conn.prepareStatement("DELETE FROM RECORD WHERE id = ? AND id_account = ?;");
				pStmt.setInt(1, record.getId());
				pStmt.setInt(2, from.getId());
				result = pStmt.executeUpdate();
				
			} catch (SQLException e) {

				e.printStackTrace();
				
			} finally {
				
				closeResource(pStmt);
				
			}
			
		}
		
		return rec;
		
	}