JTableNested::_runQuery

Runs a query and unlocks the database on an error.