Psycopg2 prepared statement