switch to raw sql
initialize i as 0
why is it committing????