BAC-278: add maintenance script to fix page_latest issue