result of the hw2.3 of the course

Python code extracted from the course source code, just added a
couple of queries to create and extrac user (register, login)
HW3.1 solved from mongo course