added some stripslashes() here and there to remove mysql escape slashes from output