Change Cache_Database::set_with_tags() to use ORM and check if cache is new or existing.