trying to fix "ERROR: prepared statement "a1" already exists" errors