db: add date and -date indexes on logs