fixed postgreSQLstatement for windows