this was used to test sql quries before ajax