[TASK] Create update script

Adds the newly introduced fields files and categories.

Also relations from files to categories has to be moved to mn relation table to dont break them.