user_data2, db: fix changing the returned states to $->foo->bar correctly