reduce memory
fix db issue
Merge remote-tracking branch 'upstream/0.50' into moddify