In your case with CSV files, I would advise you not to create a database table during the installation process, as this creates unnecessary stress for your DBMS. The best way to do this is:
- Move the downloaded file to the "in" directory
- Examine the first few bytes of the CSV to determine the number of columns and additional data that you need.
- CSV , .
CSV , cronjob : find /dir/with/csv/files -type f -cmin +TIMEINMINUTES -delete