Added Writer for Database Writes