No need for exec(), that's implicit... apparently
Properly close the database, otherwise we get complaints from QThread on exit