Fix bottle's database host problem and fix uwsgi