Completed functionality for Purchases and added a tab for User Purchases.