Implementing a basic terms database