linkcache: query `channel' from database and make its use optional

Signed-off-by: Jeff Mahoney <jeffm@jeffreymahoney.com>