Drawing poly-line from databases (mysql), using php,json and javascript