Change the order of base classes for cursor.

With this change it is possible to monkey-patch execute method
to SimpleCursorBase and get interesting logs of everything
that goes through.