Revert "Improve file upload" and  "Wrap file thumbnails in a tag"
Add PostgreSQLsupport instead of MySQL
resolve conflicts