Convert non-transactional GGTX DB queries into transactions
After we merge #411 (closed) the most rewarding part can be executed -- we can convert the current GGTX DB operations (queries and updates) to use the transactional API, to reap the benefits.