Future AJAX controller modified

Corrected the query statement to how it should look when finished.
Edited Entity Mappings