Simple example how to save your data in MySQL database. Configured connection to mysql db, created class mapping with mysql, created simple acitivity and case which from simple action save data to MySQL. I added also mysql java driver to tomcat/lib.Download and have a look.