refactored mp code for all graph operations to use, fixed mysql insert bug for high traffic def