How to Know if Data Inserted Sucessfully to Database in Java Swing