Add activities db retrieval.