views implemented in index
after mysql insert
update