storing random objects to database, json to string parsing seems incorrect