Commit database changes after each set of adds