now have check_db and check_rt methods, clarified search flow