ref #72: move commit to prevent db cursor from exploding