added addslashes() and stripslashes() to queries