fix cursor() ,return connection.cursor