Implemented retrieving and saving levels within mongodb