fix stupid error when $dbpid is undefined

I should really go through and change all ['s to [['s
maybe later