added addslashes and substr in insert. add absolute in track.js