serialize data before storing in backend

allow objects to be stored in backend key-value dbs