Add setting up the database in db module, since the models use this.
Add check for an existing file that is uploaded with a matching checksum.
Update the directories and dependents.