Make insert_get_id() work with non-auto-incrementing columns.
Merge pull request #1410 from franzliedke/patch-56

Make insert_get_id() work with non-auto-incrementing columns.