Typescript Check If String Exists In Sql