from app import create_app, db
app = create_app()
app.app_context().push()
from app.models import PurchaseOrder
pos = PurchaseOrder.query.all()
print('Count:', len(pos))
for p in pos[:5]:
    print(p.po_number, p.status)