Refactoring

* Use threads for creating multiple requests
* Call `save_db` only once per session in order to decrease fs load
* Added command-line interface
* Improved user_id validation