added DB functions for adding topics, messages, and tags