See getFriends(long userId) in LedgerDBAdapter.java