avoid crash and make sure the DB's views are created