ajax works tested on sample database