Implemented new (UNIQUE) 'timeID' field in analysis_weekly and analysis_monthly tables. Fixes #6. Fixes #4.