added function to check terms against database without reading in