updated the tables with primary key, added AccessVisit class