created dao to add journal entry with commit and rollback.