added db access api