Update Query for DB Version 2