fixed error #1004 Create indexes at the end in SQL export

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

fixed error #1004 Create indexes at the end in SQL export