Added support for django-nonrel string AutoField primary key.
Added check for nonrel db type.
Factor auto field logic to its own method, detect engine using writable route