Small fix for community db upgrade