Overhaul History system to use DB, not LinkedList