public int isFriend(User user) {
		try {
			String statement = new String("SELECT * FROM " + FriendDBTable + " WHERE uid1 = ? AND uid2 = ?");
			PreparedStatement stmt = DBConnection.con.prepareStatement(statement);
			stmt.setInt(1, userID);
			stmt.setInt(2, user.userID);
			ResultSet rs = stmt.executeQuery();
			if (rs.next())
				return IS_FRIEND;
			rs.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		// otherwise return not_friend
		return NOT_FRIEND;
	}