Implemented ResourceFactory
Moved Hibernate configuration to config files: mysql.cfg.xml and h2.cfg.xml