Fixing search_db_type error