Save id when creating new row. Fixes #27