updated database with new fields for total pages and show menu