sm router id is sm resource id now  the db api needs to be updated to be non router specific  luckily  the schema is pretty   dumb   and you can get away with simply renaming all the functions s router resource