Fix formatting for delete SQL

Again see psycopg2 docs