fixed scoket time out and sql insert format error