Try to commit for every changes otherwise if one change fails, they are all rolled-back

Fixes https://github.com/fedora-infra/pkgdb2/issues/46