refactoring db_scan.rb