support mongodb and update log