Updating SelectTable servlet to be more robust