auto transaction works, only minor fixes for SEQUENCE needed