sm: initialize IDs to 1

Also, prepend sm:// to URI