DB Writing Added