sql.py: Wrapped calls to get_cur_query() that are used as strings in str(), because get_cur_query() can return None
sql.py: Wrapped calls to get_cur_query() that are used as strings in str(), because get_cur_query() can return None