Fix #24: change cursor.execute signature to follow psycopg2 convention.