added Last-Modified header for concepts hierarchy caching

improves chances that clients take advantage of caching

in the process, simplified database query