fixed loosing of auto increment value when exporting sql

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>