Adding code base for CRUD, but cannot work out the queries- see randomstuff file under views