Add keys to disable thumbnails for pdf and non-pdf
New fields added (shaxxx, meta_data) for postgresql
Add migration script 1.7 to 1.8 for postgresql
Fix thumbnail disabling
Fix wrong sequence value in migration script