created basic functionality of pool servlet