DB access almost done.