Add file write initial setup

Beginnings of actually getting the visualisation to pull data from the
database, rather than a test file