database file rewritten