removed bug to get server response in mysql query