implement grabbing the sdb:// data

Hooray recursion
should be sdb_opts and not value
reorganize apply_sdb

get_sdb requires opts