dbquery: connection safety for execute statements
- Added more re-connection safety for run_sql() and run_sql_many() by enveloping cursor execute statements in a try/except clause, as it used to be before run_sql_many() was introduced. This fixes recently observed problems of the type `MySQL server has gone away' on some configurations.
- Removed unused code related to query warnings.
- Other minor docstring and cosmetic changes.