Build available tags from database