compare results from db