sessions in db
typo in make_thunbnail