Make session table SQL safe.