made progress on DB access