Reading and writing of state to DB completed