sql: fix typos in templates

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
search: second pass at removing MySQL-isms

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
updatechecker: start thread in background

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>