fix sql statement,added test html