wzg update database code , fixed bug 7250 7199 7246