fixed bugs about inconsistent database key words