You can use an AEM workflow and create a custom step that reads the payload that gets the file names. This will get you started: Adobe Experience Manager Help | Replicating Adobe Experience Manager Content using the Replication API
I strongly recommend that you work through this Weekend tutorial to learn the best AEM development practices. You are asking questions covered here: Getting Started with AEM Sites - WKND Tutorial
You could easily create a custom form action that sends submitted data to an OSGi service. Then you can write Java Database logic to persist the data into a relational database.