Database schema changes: splitting plot table into dataset and visible_p...

...lot tables + view plot

Refactoring of tools scripts
We should add a comment describing why we have created this view