Does not execute empty SQL queries. pyscopg2 cannot execute empty sql queries