refactor all accesses of a table into its access class