Fix typo
Prepare mongodb
Replace atom var with mongodb
Cleanup old code