add redis and mysql persistence