db: rebuild to update metadata objs.