transaction management + AutoIncrement ID columns + entities

Change-Id: Ie27fc761a4375bf3babbfe21907260a812fff177