set value in where clause to always add quotes
added type for where condition
took out console logs