populate pages collection in db script