I'd recommend to give Scriptella ETL a try. It's the only open source tool I know licensed under commercial friendly Apache License.
See
Load CSV data into a database (Scriptella ETL tool) [database] [csv] [JDBC] [scriptella] for a simple example on how to load CSV data into a database.