Add functionality

It is no longer possible to upload the same image twice because the
image md5’s are stored in the database.

purge.sh will delete the database and all the uploaded images.