Made the model signaller responsible for pushing changes to the database rather than whatever code called it.
Made the renderer an object running in a thread rather than the thread itself. Hopefully fixed the db connection issue.]