Fixed structure of caching model

And implemented simple query caching for keyword searches.
Added an association between sentence and projects