minor fixes to AppView, some important invitation fixes to db files