Feature/reversing distribution

Reversing distribution to patient and to service
These parameters are not escaped properly.  Please use `db.exec(sqlStatement, paramsArray)` to escape parameters.