Handle "NULL" as a key for auto increment variable.
Now "NULL" key string has to be defined in rails and shell for both.