Tag browsing: livebase query optimization