Solving MySQL 100% CPU