[database] fix database upgrade function to work with mysql backend
darcs-hash:20091206212440-b0006-7b9d17e1e90414d30a63605372086b66999921a7.gz
committer: Mickael Royer <mickael.royer@…>