Terms

Changed getTerms to reflect changes in the database.