replace database file