Fix build.
Fix build.
Persist DB on shutdown.
Load saved programs on startup.