Commit changes after all database transactions are complete.