control states now inserted into db.