changing []interface{} to []string in ES output
updating DatabaseFile file path to use Globals().ShareDir as it's default base path
updating shameful code to reflect many wise suggestions per Rob's notes