fixed the table bug and seed data bug