Begin database performance optimization.