Whoops

Shit dude, really sorry -- I added a fix for the db upgrade script. I accidentally used $this-> when not in a class. It's fixed now.