Create indexes on tables with weak deps
Fix memory leak in yum_db_index_primary_tables()