db connection can set sqlite's check_same_thread option.  defaults to False.  Required for the web portal to pull out records.
made the web portal file more polite.  started playing about with flask.  Nothing to note.