Added logic for uploading html files to the database