Plug database connection leak in SqlQueryView::setQuery()