Feature/reversing distribution

Reversing distribution to patient and to service
`db.execute` is deprecated and will be removed as soon as we remove it from `server/controllers/tree.js`.  Please change this code to using `db.exec()`.