integrated db access in index