fix org.hibernate.HibernateException: No Session found for current thread

fix org.hibernate.HibernateException: No Session found for current
thread
add transaction for each DB operator funtion. at the interface, and
include all new extended inteface.