fixed runSqlFromFile self undefined exception and return wrong id value without auto increment.

This fixed two problems:
* issues #82
* primary key without auto increment, such as GUID string, always returns wrong integer after save.