add access_avls_server_to_sql function