optimise how cookies are read, share db connection and pass only need vars in js sentences