servlet to save and retrieve statement