Formatting db view sql creation, and also addressed FIXME in Hugo's
change.