add server side code to store data in apc