[ChenYang][fix app.rb disconnect db problem]