Added db and fixed new family handler
Added some queries and views