sql sequence number fix

to fix master

Change-Id: Ibce68377f6749c48ffcef5190193128e5e66c070
Signed-off-by: Laszlo Hornyak <lhornyak@redhat.com>