Added pg search to projects

Ah ok, looks like you can't use if with named scopes. I'll find another way of doing it.