Update DatabaseService.java

Change addPersist() method to commit transaction right after the puzzle is persisted to em.