Tweak #1377 after the fact

That PR was for a branch in @zwn's fork, not a branch of the main repo.
Since I couldn't commit on that branch I'm doing this little bit here.
This rounds nactive in addition to transfer_volume. It also reflows the
db call to not use long lines.