add database into this branch, hook up views with database advancing, add a model to collect clicked information