add is_www to db schema
implement term constraint, add back notes query