'Ps and qs' originally comes from English pubs. It comes from "mind your ps and qs" => mind your pints and quarts.
Something like pay attention to your bar bill, the account at the pub. Ps and qs (pints and quarts) is the tabulation of outstanding drinks not payed for, for a particular patron. Pints and quarts of beer, ale etc. Means be upstanding, fully accounted for, responsible.