now takes into account whether file name already has .pdf
now goes to database in download folder
now goes to database in upload folder
version 0.2.10