got stuff added to session but not to database

Favorite videos are added into the session properly
but not adding into database properly