added an extra table to keep track of purchased items