Fixed #21856: Allow Empty DATABASES Setting

Fix for https://code.djangoproject.com/ticket/21856

There was a regression that prevented using runserver with `DATABASES = {}`. This also refactors the `check_migrations` method which was in the `runserver` command to use the new system checks framework instead.