Difference between stream lookup and database lookup