singleton hibernate getSessionFactory
use client side paging for treatments and appointments.