working out problems with cordova/polymer pouch-db element