fix deploy flow, hipchat error, db:upgrade