mapping json from database to daily pill regimen request