Bug fixed on quiz_sessions controller. Now quiz sessions are stored correctly in the database