using thread to inclue function sql_access,access_avls_server