Added ability to respond to synch queries for Redis

@anpete Both materialized and non-materialized queries now working. 

TODO: add same ability for asynch queries
Changed to GetEntityQueryObjectsFromDatabase() and GetProjectionQueryObjectsFromDatabase()