Fixed a bug where session storage in DB fails on MySQL 5.6.