Database returns search id