Added a missing import
Fixed a problems with the get_history method
Made a refactor of questions app