Dont allow NULL as time entry GUID in local database

Generate an GUID if it's missing
Generate GUID for TE if its missing, fixes #200
Add a GUID-less time entry to test data