Switch to pymongo and add action for tabs to display correct divs.