Wrapped savePosts() in a db transaction.