[DB] fixed db structure error, added tpls for new views