Now using a recursive function in order to add user notifications for expired medicines

Using a for loop did not allow for notifications to be added for
multiple users. Using a recursive loop this has been achieved. The for
loop proved to be a problem as the callback required for the mongoose
find would execute after the loop was completed. This callback is able
to execute successfully using a recursive loop.