database writer extended