Clean comments, and prepare to check if query was successful