using mysql pool to handle closed connections properly. hopefully this will resolve the periodic crashes.