Refactor IGNORE db_uri logic