add sql index for entry table. (is real faster with new sql...)