Save print state to db.