getting m2ms sql happening