reset db state