create decks table and a pivot table