updated code for saving drug stock details