make sure models are saved in a transaction