add attribute tables for pages and scans