set up method to save medication to database