Hooked thumbnail and student view up to database