fix significant database bug

Signed-off-by: anti-freak <antifreak2011@gmail.com>
improve DatabaseChanger

Signed-off-by: anti-freak <antifreak2011@gmail.com>