refactored db to hold all state info, switched results activity to
drawing from db only, more functional history activity