connection between views functional
working on updating database