Code meets world: tweaks and fixes

Now only inserts on interval instead of when new input is detected to save precious Raspberry Pi resources, especially when generating reports using web interface.