added the stats command to mgdb