added logging, updated mongoDBadapter