correct comparison in file and in db upload