Some other errors on keys and auto_increemnt

Signed-off-by: emanuele <emanuele45@gmail.com>