added static version of select(DBAgentSelectWithStatementArg &) and the test for it.