pg bug on join
changed id to resource.id to remove ambiguity for pg. not sure it works
fix?
fix?
fix?
fixed database config file. not sure what happened to last changes
search is fully dynamic and working on postgres
minor layout/style changes