Added base tree and secondary index to db test