Send the DB Query back to the ajax listener.