Cleanup: Fix up DBOperation after re-styling.

Additional Changes:
 - Don't need to assign a value if its already the default.
 - Improve code readability and comments.
Bugfix: Add missing if.
Fix comment nitpick.
Merge pull request #277 from Astron/cleanup/db-operation

Cleanup: Fix up DBOperation after re-styling.