added context manager with connection, connection.cursor()