command line version of jpword memorization, use embedded db(derby)