Added db aspect of read API.