For when you convert to the SQL database, you can use Apache's dbutils for a low-level solution, or Hibernate for a high-level solution.
dbutils You can implement a ResultSetHandler to convert a result set into an object or if its a POJO the framework can convert it for you. There are examples on the apache site. http://commons.apache.org/proper/commons-dbutils/
Hibernate There are plenty of tutorials out there for working with Hibernate. http://www.hibernate.org/