Deleted backup view files.
Resource controller now makes sure a file was uploaded when saving.
Updated database script to latest database structure (attachments).