sql_handle_delete_action(): add missing $; simplify checks in non-quick mode
add explicit RELEASE after ROLLBACK, to prevent any further actions on db