database writer added