gettign related terms for patterns and display now works. Does not save them to db yet.