Postgres Error Aggregate Functions Postgresql Vscode