public static Friend[] getFriendRequests(Statement stmt, int user_id)
			throws SQLException {
		ResultSet rs = stmt
				.executeQuery("SELECT f.*, u.username FROM friends AS f INNER JOIN users AS u ON f.requested_by = u.id WHERE f.requested_for = "
						+ user_id + " AND approved = 0");
		rs.last();
		int size = rs.getRow();
		Friend[] requests = new Friend[size];
		rs.first();
		for (int i = 0; i < size; i++) {
			String sender = rs.getString("username");
			Friend f = new Friend(rs.getInt("id"), rs.getInt("requested_by"), sender);
			requests[i] = f;
			rs.next();
		}
		return requests;
	}