Learning mongodb and some theory