Fixed all (i hope) relations in models and some errors in migrations