deprecating database_resource