Added database logging of file uploads.