A 47-year-old man presents with sudden onset severe epigastric pain radiating to the back, vomiting and tachycardia. Serum amylase is three times the upper limit of normal. Ultrasound shows gallstones. Which of the following is the most appropriate initial management?