Write to DB step added