not reloading the page if the user might be offline anyway (avoid looping when offline)
moving peripherals check to fielddb
using same result map reduce in both couchdb and app