Manage SQL display.
Rename attributes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>