updated db and fixed a view var bug

see #50