Added JDBCTemplate and SessionFactory usage