First pass at foundation and added postgres search functionality