check that sdir equals target in database.remote_search() (acd2acb)