Added JPA support
Changed to a mysql database and added JPA entities.