POI and
JDBC, respectively, solve those two problems. Have you read the web sites we pointed you to yet? Do you understand how they work? If not, what
specifically are you unclear about?
(I don't understand what JFileChooser has to do with reading an Excel file, or with writing to a DB, so I can't speak to that.)