Imho the problem lies in the fact that you’re trying to compare ==/2 the source data to the data coming out of the db:
==/2