add domain: Removing unnecessary flush() and commit()