Setting of auto-increment key value on insert

Signed-off-by: Matthias Stevens <matthias.stevens@gmail.com>