adding tables to models