added migrations and loads of stuff