generic form processing, storage and access script