結果 : python script to connect to postgresql database and execute query