added postgres, user_id to Resources, and resource.user.name in index view