Added the DB tables and scripts to pull data out of the DB. Autosave is the next todo.