ambiguity between 'connection' function and 'connection' attribute error fixed, already have cursor case was buggy as trying in any case cursor trying to generate from connection however there is no connection and also as told already have a cursor bug fixed