Naive but functionning connection between views/db