add index for db