Setting Hibernate and Database Service Layers