changed to use QgsSqliteHandle and added QMessageBox include