Fix formatting of database output.