working with keystone db