This is not thread-safe, you need to use `cur.execute()` here.

On further thought, maybe it is better to change OsmosisSubTable so that it returns always all the columns of the table, then you don't need the additional query and nodes/nodes.py can be made to inherit from OsmosisSubTable as well. (Consider this more a note-to-self, changing above statement will do.)