added a condition to the sql where statement to only search our fieldid for existing secret