fix some bugs

strip tags in homepage preview
recommend sql fix