Added relative path in ajax and created sql queries file.