optimize by reusing pyodbc connection