File Download Security & Database

File downloads are now secure, as it checks if you have proper
permissions before starting the file download. The database was also
slightly altered, and I have included a mydb_structure.sql that
contains only the structure of the database.