fixed loosing of auto increment value when exporting sql

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>
Merge pull request #894 from vpowerrc/master

fixed loosing of auto increment value when exporting sql