freebase data munging all set, though should probably put it in its own function