adds joined table for purchases and products