improve reset db