add database query to ajaxrequest_nametitle