add set session only when it is mysql