Working with json mysql field instead of many-to-many table