Added search function..
moved sqlite helper