add loop db search check util