Fix issues with db updating.
Added ability to specify a range of dates for display.