database indexing for tf and df fixed