search returning json, helper functions in models
restaurant search and more fixes