adds multiple categories and switching purchases and purchase tables by category.