replaced coded states with database ones