public Account getAccount(Integer id) {

		Account account = null;
		PreparedStatement pStmt = null;
		ResultSet rs = null;
		
		try {
			
			pStmt = conn.prepareStatement("SELECT * FROM ACCOUNT WHERE id = ?;");
			pStmt.setInt(1, id);
			rs = pStmt.executeQuery();
			
			while (rs.next()) {
				
				account = new Account();
				String user_login = rs.getString("user_login");
				account.setId(rs.getInt("id"));
				account.setFunds(rs.getDouble("funds"));
				account.setUser(getUser(user_login));
				
			}
			
		} catch (SQLException e) {

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