database tuning for low latency