hopefully included just enough in files
dealing with scope in callAsync
Added separate database file