Added journaling to mongodb, cleanup
Added logging