manage db resorce