Add transactions into sql complex requests (+ fix checkstyle)