make db_txn accept variadic and keyword args

so that there will be fewer partial() calls when using db_txn