build date index at startup