DML operations in java