php -> Db php snippet