Retrieve activities from database working