Added db code