added wipe of database
updated tables to support master and term type
reseeding of database added