added the extra call to SQLFreeStmt() back to make it work under MySQL