1. Created helper file for key_terms, 2. db refactor