revamped API and db - now independent of sensors and flexible to arbitrary numeric data