Simple Java database persistence