DB/SAI: Prevent infinite loop

Just another brick in the wall... thanks @cr4st