Minor sql change

Signed-off-by: Marco Casella <marco.casella+git@gmail.com>