modified connection pool class and context.xml and Index.java