improve popcount
use popcount table
add last inserted row, # changes to simple-result info

The info keys are 'insert-id, 'affected-rows, as for mysql.
updated docs for new simple-result info

Most changes are due to unrelated serialization improvements,
but there's one example with a different result.
fix db test script