If you are using object variable to store the response data of DB search then use the following format
let {var_name} = data.variables.{db_variable}.records[index].{DB_column_names}
If you are using array variable to store the response data of DB search then use the following format
let {var_name} = data.variables.{db_variable}[index].{DB_column_names}
Hope this helps.