Fix DB update fail bug, delete some useless resource e