database bottleneck