come sono strutturare le tabelle? usi un db?