create State database class