added view count and last accessed columns to metadata table