added the havePagInDatabase and seePageInDatabase methods