add swith to use mysql pool or not