Updates database file