def tquery(query, con=None, cur=None):
res = sql.execute(query, con=con, cur=cur).fetchall()<EOL>if res is None:<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return list(res)<EOL><DEDENT>
Replace removed sql.tquery function