added support for multiple primary keys during commit.