Make certain index methods transactional

This is so when we calculate Run.status in Run.__json__(), we actually
commit the result.