Any pharmacy licensed by the Department of Consumer Protection may fill the prescription of a licensed physician, advanced practice registered nurse, physician assistant or dentist for alcoholic liquors at any time without regard to the vote of any town prohibiting the sale of such liquors and may use alcoholic liquors for the compounding of such prescriptions and for the manufacture of all United States Pharmacopoeia and National Formulary preparations and all other medicinal preparations without the necessity of obtaining a permit from the Department of Consumer Protection, provided each such prescription shall include the name and address of the person for whom it is prescribed and shall be signed with his full name by the person issuing such prescription. Each such prescription shall be filled only once, and the person making a sale on such prescription shall write on the face thereof the number of such prescription and the date of the sale or delivery of such liquor and shall keep such prescription on file and available at all reasonable times for inspection. All alcoholic liquors sold by licensed pharmacies on prescriptions alone shall be kept in compartments, which compartments shall be securely locked except when such liquors are being used in the compounding of the prescriptions.