How To Integrate a Database with AJAX