mysql performance optimizations
after analysis with tuning-primer.sh and mysqltuner.pl