1.remove some redundant code 2.don't close database when stop one activity