restruct rdb object