Compose and execute MySQL queries programmatically.