Trying to fix the database (with many-to-many table)