videos 34 & 35: storing query errors in the database class & using sessions to store data