Fix the silly data wipe on re-deployment by writing the data to a volume instead of the ephemeral container filesystem.
Move the code dealing with saving and loading data to server/database to gather it all up into one place.