Add mongodb connector

add mongodb connector, also refactoring the parser