Include database param if provided and valid in django_admin commands

The database param was being ignored in the django_admin commands that used it.