more work on hibernate implementation, add clean sql statements and update hibernate.cfg