Modified DB layout + thumbnail generation

Created 2 different thumbnail generations, one for full size viewing and
one as a small thumbnail

Able to preview thumbnails - very limited.