updated to postgres db