finish reset db