Normalize the syntax and output of db.rb

Discovered inconsistent output in the database commands while working on #1958.