s3:net: rewrite "net idmap restore" using dbwrap