fix varname
remove stray debug statement
add forgotten exception message
tidy
make sure silly mysql doesn't try to autoincrement our pull request numbers
env var has changed name