minor change to db access