read page metadata from db