snippet and db