db mostly done.