Fixed Mongodb once and for all. I guess I should read tutorials more thoroughly. Or maybe even a book.