implementing DatabaseWriter and CollectionWriter implementations of async Tasks. Updating