sql added to addMedication