Fixed more tabs, made some edits to TextUI. It now keeps a reference to the DB instead of owning it. Makes setting up the DB with data it's own responsibility.