[libsocialcache] Added a method for querying accounts