Remove mongodb dependency
Corrected api error