first iteration db (writing to derby)