Fixing migration

The migration was broken during the 'style changes' commit. This does two things, fix that typo, and add better support for custom user models, biggest is that it can now support a custom user model with a custom db_type meta.