private ItemDAO(){
		try{
		session = HibernateUtil.getSessionFactory().openSession();
		}catch(ExceptionInInitializerError e){
			JOptionPane.showMessageDialog(null, "Sorry can't connect to database",
					"Error", JOptionPane.ERROR_MESSAGE);
			logger.error("Cant connect to database");
			System.exit(1);
		}
	}