small fix
Merge pull request #321 from LipuFei/fix-db

Small fix for community db upgrade