[db] Misc pep8.
[db] List comprehension on transaction_manager.