adds postgres to csv