Mastering EC2 Instance Configuration for Efficient Database Operations