insert, delete, update diary in JAVA