Removed mongodb for creating. And fixed bugs.