added UploadToDB class