add logic to pick up st/# and db/# topics