commit after every insertion