temporary debugging code

Signed-off-by: emanuele <emanuele45@gmail.com>
If current_data is empty, then no query

Signed-off-by: emanuele <emanuele45@gmail.com>
Isolate the sql step

Signed-off-by: emanuele <emanuele45@gmail.com>