Added min/max date indexes.
Added migrations.