Updated most AJAX queries, details of all changes will be in next commit