User methods and small fixes to migration files regarding associations