fixed allowedhosts, also properly set devel db
got logging working, with diff formatting for local. #571