Added analyze to monitor and optimization of mysql tables to functions