useful reporting sql scripts for mysql