fixed threading issue in RestSQLAction