program now overwrites database.