implemented Algorithm db representation
added helper methods for retrieve and store in HibernateUtil.java