I need help with my project…..

I have folder as a corpus that have some files (.text) and I made a database tables (four tables) that extract some information from these files using (NetBeans, SQL). Hint: the system have two steps the first one is filling 3 tables and step2 filling one table that depends on the file table that content (file number, file name, file location, type).

I need a method that allows the system to incrementally update the database tables (check if there are new files in copus then extracting information and update tables, else do nothing )every time I use the interface (automatically).

Thank You.