fixed m2m plugin fields db_table name

fixes #2291