dummy api for storing data both in the mysql and memcache