A cgi script to collect and track trend data in a generic way