convert withings code to always use strings for hash keys
use external query for significant load-time improvement