fixed sql match string