Add nextSequenceValue() to support dbs like PostGres

Change-Id: I7af8391fc88d0336b83dba449f52709f309b6833
Merge "Add nextSequenceValue() to support dbs like PostGres"