fix and change mongodb helper