msyql fixes
search fix