Added db index to LogEntry.datetime