The Travlodge is $83 a night
https://www.hotels.com/ho206461/?q-c...=7&ZSX=0&SYE=2
I ride by it every day and I see drug dealers in the parking lot, but it looks pretty safe and they always seem polite. You are right at Market and Valencia, so right in the middle of everything.
Surf Motel. This is a completely safe neighborhood- I would stay here:
https://www.hotels.com/ho302354/?q-c...=7&ZSX=0&SYE=2
Presidio Inn as well
https://www.hotels.com/ho196376/?q-c...=7&ZSX=0&SYE=2
Days Inn is legit.
https://www.hotels.com/ho129533/?q-c...=7&ZSX=0&SYE=2
La Luna Inn
Anything on Lombard.
Stay away from anything that says Civic Center. Choose SOMA at your own risk.