I prefer creating connections and cursors per instance, not per class, so probably it will be better to put these 2 lines inside `__init__` method.