Update PostgresQueries.sql

Fixed B10