Fixed a mistake in the db creation script, setting an incorrect primary key.
Used the "right" method of handling duplicate keys during data insertion.
Fixed an issue that could cause a crash when deleting all data in the table.
Fixed time zone conversion error when picking Local timezone.
Fixed an issue when deleting data requested at UTC or Local timezone.
Simplified deletion of data at daily and higher frequencies, making time irrelevant.