How do I find out if there are any row where field matches sha1 hash of SALT + string in PostgreSQL using SQLAlchemy