Successfully prints CSV of Postgres table, filters out investment funds