Added database recording of uploads.