Improve SQL reading.
Remove trace.

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