Fixed the controller function that uploads subtitle files into the database