Added DB state to file