local database write done