log module can also log data into mongodb