How to change action type?

I have imported my Apache log-files into Matomo using, but since I’m using a script for downloading pdf-files, something like /download.php?file=pdf-file.pdf, these downloads are logged as pageviews (type 1) in the log_action table. I have updated the table to type 3 (downloads), but that doesn’t change anything.

What other changes do I need to make to the database for this to work?