connection pooling (mysql), various minor fixes; closes #92