Fixed connection with db, minor changes in hbm.xml files, added mysql jar files in mvn.