ViewDatabase.do somewhat working, but page content getting overwritten with websitefeatures content sometimes. probably due to async nature and creating xhrs/functions/promises inside loops