Add semi-colon at the end of queries if missing

Signed-off-by: emanuele <emanuele45@gmail.com>
Moving away the code blocks from the SMF importer

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