/* * databse * stores current state and reads previous */